<section>
<?php
$title = 'Product detail';
$this->headTitle($title);
?>
<h3><?php echo $this->escapeHtml($title);?></h3>
<hr>
<p class="p"> <b>"Name: <?php echo $this->escapeHtml($product->name); ?>"</b></p>
<p class="p"> <b>"Description: <?php echo $this->escapeHtml($product->desc); ?>"</b></p>
<p class="p"> <b>"Cost: <?php echo $this->escapeHtml($product->cost); ?>"</b></p>
<hr>
</section>

<?php
 $url = $this->url('estore', array(
     'action' => 'productDetail',
     'id'     => $product->id,
 ));
 ?>
 
 <form class="Form" action="<?php echo $url; ?>" method="post">
 <div>
     <input type="hidden" name="id" value="<?php echo (int) $product->id; ?>" />
     Quantity: <input type="text"  name="qnt" value="0" />
     <hr>
     <input type="submit" name="choose" value="Purchase" />
     <input type="submit" name="choose" value="Return to products" />
 </div>
 </form>


<a class="btn" href="<?php echo $this->url('estore');?>">&raquo; Return to products</a>
